﻿using System;

namespace pandx.Mulan
{
    public class AppConsts
    {
        public const string DefaultPassPhrase = "gsKxGZ012HLL3MI5";

        public const int DefaultPageSize = 10;
        public const int MaxPageSize = 1000;

        public const string TokenValidityKey = "token_validity_key";
        public const string RefreshTokenValidityKey = "refresh_token_validity_key";
        
        public const string SecurityStampKey = "AspNet.Identity.SecurityStamp";
        public const string UserIdentifier = "user_identifier";
        public const string LoginIP = "user_login_ip";

        public const string TokenType = "token_type";


        public static  TimeSpan AccessTokenExpiration = TimeSpan.FromDays(1);
        public static TimeSpan RefreshTokenExpiration = TimeSpan.FromDays(365);
    }
}

